import request from '@/utils/request'

export default {
 //显示所有基金
 selectAll(pageNum,pageSize) {
    return request({
        url: `/sys/coupon/selectAll`,
        method: 'post',
        data: {
            "pageNum": pageNum,
        	"pageSize": pageSize,
        }
    })
    },
    deleteById(couponId) {
        return request({
            url: `/sys/coupon/deleteOne`,
            method: 'get',
            params: {couponId}
        })
     },
     addOne(coupon) {
        return request({
            url: `/sys/coupon/addOne`,
            method: 'post',
            data: coupon
        })
        },
}